import org.junit.Test;

import java.util.Comparator;
import java.util.function.Function;
import java.util.function.Supplier;

/**
 * @author 35326
 * 2021/3/25 18:18
 */
public class MethodRefTest {
	@Test
	public void test(){
		Comparator<String> comparator = String::compareTo;
		Supplier<Person> supplier = Person::new;
		supplier.get();

		Function<Integer,String[]> function = o->new String[o];
		Function<Integer,String[]> function1 = String[]::new;
	}

	void fun1(){

	}

}
class Person{
	Person(){
		System.out.println(":::::::::::::");
	}
}
